package com.google.code.bankagregator.entities;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * Bank value object
 */
@Entity
public class Bank implements java.io.Serializable {

    @Id
    @Column(unique = true)
    private String name;
    private String url;

    public Bank() {

    }

    public Bank(String name, String url) {
        this.name = name;
        this.url = url;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String toString() {
        return "Bank{" +
                "name=" + name +
                ", url=" + url +
                '}';
    }
}
